<?
$pageName = "courseRecord";
include ROOT . '/view/common/student/header.php';
?>
	<div class="container">
        <div class="page-header">
            <br /><br />
            <h2>
                <label>选课记录</label>
            </h2>
        </div>
        <div class="row" style="margin-bottom:30px;">
            <div class="col-xs-12">
                <h3>
					选课记录 <small>共计<?=count($courseSelections)?>条</small>
				</h3>
				<table class="table table-striped">
					<thead>
					<tr>
						<th>课程名</th>
						<th>学分数</th>
						<th>课时数</th>
						<th>上课时间</th>
						<th>上课地点</th>
						<th>授课老师</th>
					</tr>
					</thead>
					<tbody>
						<? foreach($courseSelections as $courseSelection) {?>
						<tr>
							<td><?=CourseClass::load($courseSelection->courseClassId)->course()->name?></td>
							<td><?=CourseClass::load($courseSelection->courseClassId)->course()->credit?></td>
							<td><?=CourseClass::load($courseSelection->courseClassId)->course()->period?></td>
							<td>暂未显示</td>
							<td><?=CourseClass::load($courseSelection->courseClassId)->classRoom()->name?></td>
							<td><?=CourseClass::load($courseSelection->courseClassId)->teacher()->name?></td>
						</tr>
						<?}?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
<!-- .row -->
<center><div class="subpages row"><ul class="pagination pagination-sm"></ul></div></center>
</div>